<!-- load scripts -->
$vBeditTemplate[clientscript]

<!-- start message area --><div id="vBulletin_editor" style="text-align:$stylevar[left]"><!-- / start message area -->


<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
	<td colspan="2">



<!-- start control bar --><div id="controlbar"><!-- / start control bar -->

	<!-- first control row -->
	<div class="controlholder">
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td><div class="imagebutton" id="cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" alt="$vbphrase[remove_text_formatting]" width="21" height="20" /></div></td>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
		
			<if condition="$show['font_bbcode']">
			<td style="position:relative">
			<div class="imagebutton" id="cmd_fontname">
				<table class="popup_control" id="fontControl" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class="popup_feedback" id="fontFeedback">$vBeditTemplate[fontfeedback]</td>
					<td class="popup_pickbutton" id="fontButton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
				</tr>
				</table>
			</div>
			<!-- FONTS POPUP -->
			<div id="popup_fontname" class="popupwindow" style="width:200px; height:220px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
			<table id="fonttable" cellpadding="0" cellspacing="0" border="0" width="183">
			<col></col>
			<col width="100%"></col>
			<script type="text/javascript"> build_fontoptions(true); </script>
			</table>
			</div>
			<!-- END FONTS POPUP -->
			</td>
			</if>
		
			<if condition="$show['size_bbcode']">
			<td style="position:relative">
			<div class="imagebutton" style="left:0px" id="cmd_fontsize">
				<table class="popup_control" id="sizeControl" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class="popup_feedback" id="sizeFeedback">$vBeditTemplate[sizefeedback]</td>
					<td class="popup_pickbutton" id="sizeButton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
				</tr>
				</table>
			</div>
			<!-- SIZES POPUP -->
			<div id="popup_fontsize" class="popupwindow" style="width:36px; height:222px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
			<table id="sizetable" cellpadding="0" cellspacing="0" border="0">
			<script type="text/javascript"> build_sizeoptions(true); </script>
			</table>
			</div>
			<!-- END SIZES POPUP -->
			</td>
			</if>
		
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
		
			<if condition="$show['color_bbcode']">
			<td style="position:relative">
			<div class="imagebutton" style="left:0px" id="cmd_forecolor">
				<table cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td><img id="instantcolor" src="$stylevar[imgdir_editor]/color.gif" alt="$vbphrase[color]" width="21" height="20" /><img id="colorbar" style="display:none; background:black; <if condition="is_browser('ie')">position:absolute; top:15px;  left:2px<else />position:relative; top:-6px;  left:1px;</if>" src="$vboptions[cleargifurl]" width="16" height="4" alt="" /></td>
					<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
				</tr>
				</table>
			</div>
			<!-- COLORS POPUP -->
			<div id="popup_forecolor" class="popupwindow" style="width:144px; height:90px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
			<table id="colortable" cellpadding="0" cellspacing="0" border="0">
			<script type="text/javascript"> build_coloroptions(true); </script>
			<if condition="$show['syscolorpicker']">
			<tr>
				<td colspan="8" style="height:4px"><div></div></td>
			</tr>
			<tr>
				<td class="otextlink" id="morecolors" colspan="8">$vbphrase[more_colors] <object id="syscolorpicker" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></object></td>
			</tr>
			</if>
			</table>
			</div>
			<!-- END COLORS POPUP -->
			</td>
			</if>
		
			<if condition="$show['wysiwygsmilies']">
			<td style="position:relative">
			<div class="imagebutton" style="left:0px" id="cmd_smilie">
				<table cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="$vbphrase[insert_smilie]" width="21" height="20" /></td>
					<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="$vbphrase[open_menu]" width="11" height="16" /></td>
				</tr>
				</table>
			</div>
			<!-- START SMILIES POPUP -->
			<div id="popup_smilie" class="popupwindow" style="width:150px; height:220px; display:none; position:absolute; top:21px; filter:alpha(enabled=1,opacity=100)">
			<table id="smilietable" cellpadding="0" cellspacing="0" border="0" width="133">
			$vBeditTemplate[smiliepopup]
			<if condition="$show['wysiwygsmilieslink']">
			<tr><td><hr /></td></tr>
			<tr><td class="otextlink" id="moresmilies" style="padding:$stylevar[cellpadding]px"><phrase 1="$vboptions[wysiwyg_smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase><br />-- $vbphrase[show_all_smilies] --</td></tr>
			</if>
			</table>
			</div>
			<!-- END SMILIES POPUP -->
			</td>
			</if>
		
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			<td><div class="imagebutton" id="cmd_cut"><img src="$stylevar[imgdir_editor]/cut.gif" alt="$vbphrase[cut]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" alt="$vbphrase[copy]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" alt="$vbphrase[paste]" width="21" height="20" /></div></td>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			<td><div class="imagebutton" id="cmd_undo"><img src="$stylevar[imgdir_editor]/undo.gif" alt="$vbphrase[undo]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" alt="$vbphrase[redo]" width="21" height="20" /></div></td>
		</tr>
		</table>
	</div>
	<!-- / first control row -->
	
	<!-- second control row -->	
	<div class="controlholder">
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
		
			<if condition="$show['basic_bbcode']">
			<td><div class="imagebutton" id="cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" /></div></td>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			</if>
		
			<if condition="$show['align_bbcode']">
			<td><div class="imagebutton" id="cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" alt="$vbphrase[align_left]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" alt="$vbphrase[align_center]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" alt="$vbphrase[align_right]" width="21" height="20" /></div></td>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			</if>
		
			<if condition="$show['list_bbcode']">
			<td><div class="imagebutton" id="cmd_insertorderedlist"><img src="$stylevar[imgdir_editor]/insertorderedlist.gif" alt="$vbphrase[ordered_list]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_insertunorderedlist"><img src="$stylevar[imgdir_editor]/insertunorderedlist.gif" alt="$vbphrase[unordered_list]" width="21" height="20" /></div></td>
			</if>
		
			<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
			<td><div class="imagebutton" id="cmd_outdent"><img src="$stylevar[imgdir_editor]/outdent.gif" alt="$vbphrase[decrease_indent]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_indent"><img src="$stylevar[imgdir_editor]/indent.gif" alt="$vbphrase[increase_indent]" width="21" height="20" /></div></td>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			</if>
		
			<if condition="$show['url_bbcode']">
			<td><div class="imagebutton" id="cmd_createlink"><img src="$stylevar[imgdir_editor]/createlink.gif" alt="$vbphrase[insert_link]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_unlink"><img src="$stylevar[imgdir_editor]/unlink.gif" alt="$vbphrase[remove_link]" width="21" height="20" /></div></td>
			<td><div class="imagebutton" id="cmd_createmail"><img src="$stylevar[imgdir_editor]/email.gif" alt="$vbphrase[insert_email_link]" width="21" height="20" /></div></td>
			</if>
		
			<if condition="$show['img_bbcode']">
			<td><div class="imagebutton" id="cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" alt="$vbphrase[insert_image]" width="21" height="20" /></div></td>
			</if>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			<if condition="$show['code_bbcode']">
			<td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
			</if>
		
			<if condition="$show['html_bbcode']">
			<td><div class="imagebutton" id="cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif" alt="$vbphrase[wrap_html_tags]" width="21" height="20" /></div></td>
			</if>
		
			<if condition="$show['php_bbcode']">
			<td><div class="imagebutton" id="cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" alt="$vbphrase[wrap_php_tags]" width="21" height="20" /></div></td>
			</if>
		
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
			<td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
			$vBeditTemplate[extrabuttons]
		
		</tr>
		</table>
	</div>
	<!-- / second control row -->

	<!-- third control row -->
	<div id="toolboxholder">
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td><div class="imagebutton" id="glow"><img src="images/toolbox/glow.gif" alt=" " /></div></td>
			<td><div class="imagebutton" id="blink"><img src="images/toolbox/blink.gif" alt="" /></div></td>
			<td><div class="imagebutton" id="glint"><img src="images/toolbox/glint.gif" alt="" /></div></td>
			<td><div class="imagebutton" id="gradient"><img src="images/toolbox/gradient.gif" alt=" " /></div></td>

			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

			<td><div class="imagebutton" id="rplayer"><img src="images/toolbox/rplayer.gif" alt="    (rm,ra,ram,...)	" /></div></td>
			<td><div class="imagebutton" id="media"><img src="images/toolbox/media.gif" alt="    (mp3,wav,au,wma,mpg,mpeg,wmv,avi,...)" /></div></td>
			<td><div class="imagebutton" id="flash"><img src="images/toolbox/flash.gif" alt=" " ></div></td>	

			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

			<td><div class="imagebutton" id="mleft"><img src="images/toolbox/mleft.gif" alt="  " /></div></td>
			<td><div class="imagebutton" id="mright"><img src="images/toolbox/mright.gif" alt="  " /></div></td>
			<td><div class="imagebutton" id="mup"><img src="images/toolbox/mup.gif" alt="  " /></div></td>
			<td><div class="imagebutton" id="mdown"><img src="images/toolbox/mdown.gif" alt="  " /></div></td>

			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="18" /></td>

			<td><div class="imagebutton" id="line"><img src="images/toolbox/line.gif" alt=" " /></div></td>
			<td><div class="imagebutton" id="poem"><img src="images/toolbox/poem.gif" alt="  " /></div></td>
			<td><div class="imagebutton" id="frame"><img src="images/toolbox/frame.gif" alt=" " /></div></td>
		</tr>
		</table>
	</div>
	
	<!-- / third control row -->
	
<!-- end control bar --></div><!-- / end control bar -->

	
	
	</td>
</tr>
<tr valign="top">
	<td class="controlbar">



	<!-- hidden field to contain html -->
	<input type="hidden" name="WYSIWYG_HTML" id="html_hidden_field" value="$newpost[message_html]" />
	
	<!-- edit text area -->
	<if condition="is_browser('ie')">
	
		<!-- internet explorer text area -->
		<div id="htmlbox" class="wysiwyg" tabindex="1" style="width:$stylevar[messagewidth]; height:250px; padding:8px">$newpost[message]</div>
		
	<else />
	
		<!-- mozilla text area -->
		<iframe id="htmlbox" tabindex="1" style="width:$stylevar[messagewidth]; height:250px"></iframe>
		
	</if>
	<!-- / edit text area -->
	
	

	</td>
	
	<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>
</table>




<!-- end message area --></div><!-- / end message area -->




<if condition="is_browser('ie')">
	<!-- initialization script -->
	<script type="text/javascript">
	<!--
	editInit();
	//-->
	</script>
</if>
<script type="text/javascript" src="clientscript/poem_wysiwyg.js"></script>